//
//  TagTextField.m
//  XiangMuB
//
//  Created by lanou3g on 16/8/16.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "TagTextField.h"

#import "UIView+FrameView.h"

@implementation TagTextField

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        
        self.placeholder = @"多个标签用逗号或换行隔开";
        [self setValue:[UIColor darkGrayColor] forKeyPath:@"_placeholderLabel.textColor"];
        self.height = 25;
        
    }
    
    return self;
}

- (void)deleteBackward{
    
    !self.deleteBlock ? : self.deleteBlock();
    [super deleteBackward];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
